package com.cw.jeeyt.dao.model.system;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 生成代码模板模块信息Example
 *
 * @author chenw
 * @date 2020-03-18 20:21:41
 */
public class SystemTemplateModuleInfoExample {
    /** 排序字段 */
    protected String orderByClause;

    /** 是否只查询记录不同的数据 */
    protected boolean distinct;

    /** or条件查询集合 */
    protected List<Criteria> oredCriteria;

    /**
     * 初始化or条件查询集合
     */
    public SystemTemplateModuleInfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     * 排序字段set方法
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     * 排序字段get方法
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     * 不同记录set方法.
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     * 不同记录get方法.
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     * 排序集合get方法
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     * or
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     * or
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     * 初始化标准规范
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     * 初始化标准规范
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     * 清除数据
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTemplateIdIsNull() {
            addCriterion("template_id is null");
            return (Criteria) this;
        }

        public Criteria andTemplateIdIsNotNull() {
            addCriterion("template_id is not null");
            return (Criteria) this;
        }

        public Criteria andTemplateIdEqualTo(String value) {
            addCriterion("template_id =", value, "templateId");
            return (Criteria) this;
        }

        public Criteria andTemplateIdNotEqualTo(String value) {
            addCriterion("template_id <>", value, "templateId");
            return (Criteria) this;
        }

        public Criteria andTemplateIdGreaterThan(String value) {
            addCriterion("template_id >", value, "templateId");
            return (Criteria) this;
        }

        public Criteria andTemplateIdGreaterThanOrEqualTo(String value) {
            addCriterion("template_id >=", value, "templateId");
            return (Criteria) this;
        }

        public Criteria andTemplateIdLessThan(String value) {
            addCriterion("template_id <", value, "templateId");
            return (Criteria) this;
        }

        public Criteria andTemplateIdLessThanOrEqualTo(String value) {
            addCriterion("template_id <=", value, "templateId");
            return (Criteria) this;
        }

        public Criteria andTemplateIdLike(String value) {
            addCriterion("template_id like", value, "templateId");
            return (Criteria) this;
        }

        public Criteria andTemplateIdNotLike(String value) {
            addCriterion("template_id not like", value, "templateId");
            return (Criteria) this;
        }

        public Criteria andTemplateIdIn(List<String> values) {
            addCriterion("template_id in", values, "templateId");
            return (Criteria) this;
        }

        public Criteria andTemplateIdNotIn(List<String> values) {
            addCriterion("template_id not in", values, "templateId");
            return (Criteria) this;
        }

        public Criteria andTemplateIdBetween(String value1, String value2) {
            addCriterion("template_id between", value1, value2, "templateId");
            return (Criteria) this;
        }

        public Criteria andTemplateIdNotBetween(String value1, String value2) {
            addCriterion("template_id not between", value1, value2, "templateId");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCodeIsNull() {
            addCriterion("template_module_code is null");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCodeIsNotNull() {
            addCriterion("template_module_code is not null");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCodeEqualTo(String value) {
            addCriterion("template_module_code =", value, "templateModuleCode");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCodeNotEqualTo(String value) {
            addCriterion("template_module_code <>", value, "templateModuleCode");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCodeGreaterThan(String value) {
            addCriterion("template_module_code >", value, "templateModuleCode");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCodeGreaterThanOrEqualTo(String value) {
            addCriterion("template_module_code >=", value, "templateModuleCode");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCodeLessThan(String value) {
            addCriterion("template_module_code <", value, "templateModuleCode");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCodeLessThanOrEqualTo(String value) {
            addCriterion("template_module_code <=", value, "templateModuleCode");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCodeLike(String value) {
            addCriterion("template_module_code like", value, "templateModuleCode");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCodeNotLike(String value) {
            addCriterion("template_module_code not like", value, "templateModuleCode");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCodeIn(List<String> values) {
            addCriterion("template_module_code in", values, "templateModuleCode");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCodeNotIn(List<String> values) {
            addCriterion("template_module_code not in", values, "templateModuleCode");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCodeBetween(String value1, String value2) {
            addCriterion("template_module_code between", value1, value2, "templateModuleCode");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCodeNotBetween(String value1, String value2) {
            addCriterion("template_module_code not between", value1, value2, "templateModuleCode");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleNameIsNull() {
            addCriterion("template_module_name is null");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleNameIsNotNull() {
            addCriterion("template_module_name is not null");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleNameEqualTo(String value) {
            addCriterion("template_module_name =", value, "templateModuleName");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleNameNotEqualTo(String value) {
            addCriterion("template_module_name <>", value, "templateModuleName");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleNameGreaterThan(String value) {
            addCriterion("template_module_name >", value, "templateModuleName");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleNameGreaterThanOrEqualTo(String value) {
            addCriterion("template_module_name >=", value, "templateModuleName");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleNameLessThan(String value) {
            addCriterion("template_module_name <", value, "templateModuleName");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleNameLessThanOrEqualTo(String value) {
            addCriterion("template_module_name <=", value, "templateModuleName");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleNameLike(String value) {
            addCriterion("template_module_name like", value, "templateModuleName");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleNameNotLike(String value) {
            addCriterion("template_module_name not like", value, "templateModuleName");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleNameIn(List<String> values) {
            addCriterion("template_module_name in", values, "templateModuleName");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleNameNotIn(List<String> values) {
            addCriterion("template_module_name not in", values, "templateModuleName");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleNameBetween(String value1, String value2) {
            addCriterion("template_module_name between", value1, value2, "templateModuleName");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleNameNotBetween(String value1, String value2) {
            addCriterion("template_module_name not between", value1, value2, "templateModuleName");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCommentIsNull() {
            addCriterion("template_module_comment is null");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCommentIsNotNull() {
            addCriterion("template_module_comment is not null");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCommentEqualTo(String value) {
            addCriterion("template_module_comment =", value, "templateModuleComment");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCommentNotEqualTo(String value) {
            addCriterion("template_module_comment <>", value, "templateModuleComment");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCommentGreaterThan(String value) {
            addCriterion("template_module_comment >", value, "templateModuleComment");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCommentGreaterThanOrEqualTo(String value) {
            addCriterion("template_module_comment >=", value, "templateModuleComment");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCommentLessThan(String value) {
            addCriterion("template_module_comment <", value, "templateModuleComment");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCommentLessThanOrEqualTo(String value) {
            addCriterion("template_module_comment <=", value, "templateModuleComment");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCommentLike(String value) {
            addCriterion("template_module_comment like", value, "templateModuleComment");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCommentNotLike(String value) {
            addCriterion("template_module_comment not like", value, "templateModuleComment");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCommentIn(List<String> values) {
            addCriterion("template_module_comment in", values, "templateModuleComment");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCommentNotIn(List<String> values) {
            addCriterion("template_module_comment not in", values, "templateModuleComment");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCommentBetween(String value1, String value2) {
            addCriterion("template_module_comment between", value1, value2, "templateModuleComment");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleCommentNotBetween(String value1, String value2) {
            addCriterion("template_module_comment not between", value1, value2, "templateModuleComment");
            return (Criteria) this;
        }
        public Criteria andTemplateModuleContentIsNull() {
            addCriterion("template_module_content is null");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleContentIsNotNull() {
            addCriterion("template_module_content is not null");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleContentEqualTo(String value) {
            addCriterion("template_module_content =", value, "templateModuleContent");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleContentNotEqualTo(String value) {
            addCriterion("template_module_content <>", value, "templateModuleContent");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleContentGreaterThan(String value) {
            addCriterion("template_module_content >", value, "templateModuleContent");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleContentGreaterThanOrEqualTo(String value) {
            addCriterion("template_module_content >=", value, "templateModuleContent");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleContentLessThan(String value) {
            addCriterion("template_module_content <", value, "templateModuleContent");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleContentLessThanOrEqualTo(String value) {
            addCriterion("template_module_content <=", value, "templateModuleContent");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleContentLike(String value) {
            addCriterion("template_module_content like", value, "templateModuleContent");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleContentNotLike(String value) {
            addCriterion("template_module_content not like", value, "templateModuleContent");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleContentIn(List<String> values) {
            addCriterion("template_module_content in", values, "templateModuleContent");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleContentNotIn(List<String> values) {
            addCriterion("template_module_content not in", values, "templateModuleContent");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleContentBetween(String value1, String value2) {
            addCriterion("template_module_content between", value1, value2, "templateModuleContent");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleContentNotBetween(String value1, String value2) {
            addCriterion("template_module_content not between", value1, value2, "templateModuleContent");
            return (Criteria) this;
        }
        public Criteria andTemplateModuleTypeIsNull() {
            addCriterion("template_module_type is null");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleTypeIsNotNull() {
            addCriterion("template_module_type is not null");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleTypeEqualTo(String value) {
            addCriterion("template_module_type =", value, "templateModuleType");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleTypeNotEqualTo(String value) {
            addCriterion("template_module_type <>", value, "templateModuleType");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleTypeGreaterThan(String value) {
            addCriterion("template_module_type >", value, "templateModuleType");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleTypeGreaterThanOrEqualTo(String value) {
            addCriterion("template_module_type >=", value, "templateModuleType");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleTypeLessThan(String value) {
            addCriterion("template_module_type <", value, "templateModuleType");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleTypeLessThanOrEqualTo(String value) {
            addCriterion("template_module_type <=", value, "templateModuleType");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleTypeLike(String value) {
            addCriterion("template_module_type like", value, "templateModuleType");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleTypeNotLike(String value) {
            addCriterion("template_module_type not like", value, "templateModuleType");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleTypeIn(List<String> values) {
            addCriterion("template_module_type in", values, "templateModuleType");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleTypeNotIn(List<String> values) {
            addCriterion("template_module_type not in", values, "templateModuleType");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleTypeBetween(String value1, String value2) {
            addCriterion("template_module_type between", value1, value2, "templateModuleType");
            return (Criteria) this;
        }

        public Criteria andTemplateModuleTypeNotBetween(String value1, String value2) {
            addCriterion("template_module_type not between", value1, value2, "templateModuleType");
            return (Criteria) this;
        }

        public Criteria andOutputFolderIsNull() {
            addCriterion("output_folder is null");
            return (Criteria) this;
        }

        public Criteria andOutputFolderIsNotNull() {
            addCriterion("output_folder is not null");
            return (Criteria) this;
        }

        public Criteria andOutputFolderEqualTo(String value) {
            addCriterion("output_folder =", value, "outputFolder");
            return (Criteria) this;
        }

        public Criteria andOutputFolderNotEqualTo(String value) {
            addCriterion("output_folder <>", value, "outputFolder");
            return (Criteria) this;
        }

        public Criteria andOutputFolderGreaterThan(String value) {
            addCriterion("output_folder >", value, "outputFolder");
            return (Criteria) this;
        }

        public Criteria andOutputFolderGreaterThanOrEqualTo(String value) {
            addCriterion("output_folder >=", value, "outputFolder");
            return (Criteria) this;
        }

        public Criteria andOutputFolderLessThan(String value) {
            addCriterion("output_folder <", value, "outputFolder");
            return (Criteria) this;
        }

        public Criteria andOutputFolderLessThanOrEqualTo(String value) {
            addCriterion("output_folder <=", value, "outputFolder");
            return (Criteria) this;
        }

        public Criteria andOutputFolderLike(String value) {
            addCriterion("output_folder like", value, "outputFolder");
            return (Criteria) this;
        }

        public Criteria andOutputFolderNotLike(String value) {
            addCriterion("output_folder not like", value, "outputFolder");
            return (Criteria) this;
        }

        public Criteria andOutputFolderIn(List<String> values) {
            addCriterion("output_folder in", values, "outputFolder");
            return (Criteria) this;
        }

        public Criteria andOutputFolderNotIn(List<String> values) {
            addCriterion("output_folder not in", values, "outputFolder");
            return (Criteria) this;
        }

        public Criteria andOutputFolderBetween(String value1, String value2) {
            addCriterion("output_folder between", value1, value2, "outputFolder");
            return (Criteria) this;
        }

        public Criteria andOutputFolderNotBetween(String value1, String value2) {
            addCriterion("output_folder not between", value1, value2, "outputFolder");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}
